/* Base Styles */
:root {
    --primary-color: #4e7bff;
    --secondary-color: #6c63ff;
    --accent-color: #3d5af1;
    --nav-bg-color: rgba(137,224,215,255);
    --text-color: #333;
    --light-text: #666;
    --bg-color: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #e1e4e8;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(78, 123, 255, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 20px 0;
    z-index: 1000;
    background-color: var(--nav-bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

header.scrolled {
    padding: 15px 0;
    background-color: var(--nav-bg-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    direction: ltr;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0px;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: rgba(17,17,17,255);
    letter-spacing: 1px;
}

.logo_img {
    height: 40px;
    width: auto;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-weight: 500;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f0ff 100%);
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.underline {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* Features Section */
.features-section {
    background-color: var(--light-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-color);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: white;
}

.feature-icon i {
    font-size: 32px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: var(--light-text);
    font-size: 15px;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image, .about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 25px;
    color: var(--light-text);
}

/* Pricing Section */
.pricing-section {
    background-color: var(--light-bg);
    text-align: center;
}

.pricing-info {
    max-width: 700px;
    margin: 0 auto 50px;
}

.pricing-info p {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 30px;
}

.pricing-contact {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    margin-top: 30px;
}

.pricing-contact h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

.pricing-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.pricing-feature {
    background-color: var(--bg-color);
    padding: 15px 25px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--box-shadow);
}

.pricing-feature i {
    color: var(--primary-color);
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-info p {
    color: var(--light-text);
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--light-bg);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 70px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Chatbot Button */
.chatbot-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.chatbot-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.chatbot-button i {
    color: white;
    font-size: 24px;
}

.chatbot-button::after {
    content: "Try PYRODOT";
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.chatbot-button:hover::after {
    opacity: 1;
}

.language-toggle {
    margin-left: 20px;
}
  
.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}
  
.lang-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
  
.lang-btn i {
    font-size: 16px;
}
  
/* RTL specific styles */
body.rtl {
    direction: rtl;
    text-align: right;
}
      
.logo {
    direction: ltr; /* Keep logo content LTR even in RTL mode */
}
  
body.rtl nav ul {
    flex-direction: row-reverse;
}
  
body.rtl .hero-section .container {
    flex-direction: row-reverse;
}
  
body.rtl .about-content {
    flex-direction: row-reverse;
}
  
body.rtl .feature-card {
    text-align: right;
}
  
body.rtl .contact-item {
    flex-direction: row-reverse;
}
  
body.rtl .social-links {
    justify-content: flex-end;
}

/* Enhanced Mobile Responsive Design - Only impacts mobile, preserves desktop layout */
@media (max-width: 992px) {
    .hero-section .container,
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .hero-image {
        margin-top: 50px;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    body.rtl .hero-section .container,
    body.rtl .about-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    /* Mobile improvements - No changes to desktop layout */
    html {
        font-size: 14px;
    }
    
    header {
        padding: 15px 0;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(5px);
        transition: 0.3s;
        z-index: 999;
        overflow-y: auto;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 0;
    }
    
    nav ul li {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    .language-toggle {
        margin: 15px 0 5px;
        width: 100%;
    }
    
    /* Hero section mobile improvements */
    .hero-section {
        padding: 120px 0 70px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    /* Button size for better touch targets */
    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Section adjustments */
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    /* Feature cards improvements */
    .feature-card {
        padding: 30px 20px;
    }
    
    .feature-card:hover {
        transform: translateY(-5px);
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 20px;
    }
    
    .feature-icon i {
        font-size: 24px;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    /* Contact form improvements */
    .form-group input, .form-group textarea {
        padding: 12px 10px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Footer improvements */
    footer {
        padding: 50px 0 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    /* Chatbot button adjustments */
    .chatbot-button {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .chatbot-button i {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    /* Extremely small screens */
    .pricing-feature {
        width: 100%;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    /* Ensure buttons are more accessible on very small screens */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons a {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* RTL MOBILE MENU FIX */
@media (max-width: 768px) {
    /* Fix RTL mobile menu slide direction */
    body.rtl nav {
        left: auto;
        right: -100%;
        transition: 0.3s;
    }
    
    body.rtl nav.active {
        right: 0;
        left: auto;
    }
    
    /* Fix RTL mobile menu items alignment */
    body.rtl nav ul {
        flex-direction: column;
        text-align: right;
        align-items: flex-end;
        padding: 20px;
    }
    
    body.rtl nav ul li {
        width: 100%;
        text-align: right;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    /* Fix language toggle in mobile RTL */
    body.rtl .language-toggle {
        margin: 15px 0 5px;
        width: 100%;
        display: flex;
        justify-content: flex-end;
        padding-left: 20px;
    }
    
    /* Fix RTL hero section in mobile */
    body.rtl .hero-content {
        text-align: center;
    }
    
    body.rtl .hero-buttons {
        justify-content: center;
    }
    
    /* Fix RTL feature cards in mobile */
    body.rtl .feature-card {
        text-align: center;
    }
    
    /* Fix RTL chatbot button position */
    body.rtl .chatbot-button {
        left: 20px;
        right: auto;
    }
    
    /* Fix RTL form elements */
    body.rtl .form-group input,
    body.rtl .form-group textarea {
        text-align: right;
    }
    
    /* Support for Arabic placeholder text alignment */
    body.rtl input::placeholder,
    body.rtl textarea::placeholder {
        text-align: right;
    }
    
    /* Fix contact items in RTL mobile */
    body.rtl .contact-item {
        justify-content: flex-end;
    }
    
    /* Fix feature items in RTL mobile */
    body.rtl .pricing-feature {
        flex-direction: row-reverse;
        justify-content: center;
    }
}

/* Fix for input zooming on iOS */
@media screen and (-webkit-min-device-pixel-ratio: 0) { 
    select,
    textarea,
    input {
        font-size: 16px;
    }
}

/* Improve responsiveness of buttons in mobile */
@media (max-width: 768px) {
    .try-chatbot {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }
    
    /* Fix touch target sizes for better accessibility */
    .social-links a, 
    .contact-item i {
        min-width: 44px;
        min-height: 44px;
    }
    
    .menu-toggle {
        padding: 10px;
    }
    
    .menu-toggle span {
        margin: 2px 0;
    }
    
    /* Fix RTL try-chatbot button */
    body.rtl .try-chatbot {
        flex-direction: row-reverse;
    }
}

/* Add support for iPhone SE and other very small screens */
@media (max-width: 375px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .about-text h3 {
        font-size: 1.1rem;
    }
    
    /* Further reduce icon sizes */
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon i {
        font-size: 20px;
    }
    
    /* Fix RTL chatbot button position on very small screens */
    body.rtl .chatbot-button {
        left: 15px;
        bottom: 15px;
    }
}